Skip to content

chore: Upgrade golang dependencies and golangci-lint#998

Open
christian-heusel wants to merge 3 commits intokubeflow:notebooks-v2from
christian-heusel:chore/notebooks-v2-upgrade-golang-dependencies
Open

chore: Upgrade golang dependencies and golangci-lint#998
christian-heusel wants to merge 3 commits intokubeflow:notebooks-v2from
christian-heusel:chore/notebooks-v2-upgrade-golang-dependencies

Conversation

@christian-heusel
Copy link
Copy Markdown
Contributor

@christian-heusel christian-heusel commented Mar 27, 2026

  • chore: Update golang dependencies for the controller
  • chore: Update golang dependencies for the backend
  • fix: Upgrade golangci-lint to v2 and fix resulting lint errors

(Note: The reason this also includes the golangci-lint upgrade is that the old version did not build with the newer go versions)

TODO:

@google-oss-prow
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign andyatmiami for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot added the area/backend area - related to backend components label Mar 27, 2026
@google-oss-prow google-oss-prow bot added area/controller area - related to controller components area/v2 area - version - kubeflow notebooks v2 size/XXL labels Mar 27, 2026
@christian-heusel christian-heusel force-pushed the chore/notebooks-v2-upgrade-golang-dependencies branch 2 times, most recently from fa7e46a to 1686fd4 Compare March 27, 2026 22:53
@christian-heusel
Copy link
Copy Markdown
Contributor Author

/ok-to-test

@christian-heusel christian-heusel marked this pull request as ready for review March 27, 2026 23:03
christian-heusel added a commit to christian-heusel/dashboard that referenced this pull request Apr 9, 2026
Create a dependabot config similar to the one proposed in
`kubeflow/notebooks` to reduce the overall log spam.

Link: kubeflow/notebooks#998
Signed-off-by: Christian Heusel <[email protected]>
@christian-heusel christian-heusel force-pushed the chore/notebooks-v2-upgrade-golang-dependencies branch from 1686fd4 to 71cc18b Compare April 17, 2026 07:26
@christian-heusel christian-heusel force-pushed the chore/notebooks-v2-upgrade-golang-dependencies branch from 71cc18b to 0eb17f3 Compare April 17, 2026 08:56
Fixes errors surfaced by upgrading golangci-lint from v1.61.0 to
v2.11.4 (using the v2 module path).

- gosec (G118): suppress false-positive in server.go where
  context.Background() is intentionally used for HTTP server shutdown
  after the parent context has already been canceled

- staticcheck (QF1008): remove redundant embedded field selectors in
  secrets/types_write.go (s.secretBase.validateBase -> s.validateBase)

- prealloc: eliminate pre-declared nil slices that are only ever grown
  via append, by either using direct assignment from the first function
  call or inline append(a, b...) for two-call patterns; also preallocate
  test-case slices in validation_test.go using the capacities suggested
  by the linter

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Christian Heusel <[email protected]>
@christian-heusel christian-heusel force-pushed the chore/notebooks-v2-upgrade-golang-dependencies branch from 0eb17f3 to 8e585a6 Compare April 17, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend area - related to backend components area/controller area - related to controller components area/v2 area - version - kubeflow notebooks v2 ok-to-test size/XXL

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant